package com.yang.design.create.factory.method;

public class FactoryUtils {
    public static AbstractFactory getFactory(String type){
        AbstractFactory factory = null;
        if ("A".equals(type)){
            factory = new FactoryA();
        }else if ("B".equals(type)){
            factory = new FactoryB();
        }

        return factory;
    }
}
